package day11.packaging;

/**
 * @Auther:小陈的Java
 */
public class Demo5 {
    public static void main(String[] args) {
        String str="1";
        int i = new Integer(str);
        String str2 = "true";
        boolean tag = new Boolean(str2);
        String str3 = "12.2";
        double a = Double.parseDouble(str3);
        System.out.println(a);
        String str4 = "12";
        int b = Integer.parseInt(str4);
        System.out.println(b);
        String str5 = "true";
        boolean c = Boolean.parseBoolean(str5);
        System.out.println(c);

    }
}
